package perso.perso.view.admin.user;

import perso.perso.wsclient.HttpMiddlewareUserWSCall;

public class RemoveTeacherClassAction  extends DisplayUserAdminAction {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Override
	public String execute() throws Exception {
		HttpMiddlewareUserWSCall h = new HttpMiddlewareUserWSCall();
		
		Integer idClass = new Integer(this.httpServletRequest.getParameter("id"));
		Integer idUser = new Integer(this.httpServletRequest.getParameter("idTeacher"));
		
		h.removeClassesUser(idClass, idUser);
		
		this.httpServletRequest.setAttribute("idTeacher", idUser);
		
		return super.execute();
	}
}
